 /*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package view;

/**
 *
 * @author zhaoyingxi
 */
import javax.swing.*;
import java.awt.*;
/**
 *
 * @author zhaoyingxi
 */
public class Login{
    public static void main (String[] args){
        JFrame frame1 = new JFrame();
        JButton button1 = new JButton("Login");
        JButton button2 = new JButton("Register");
        JButton button3 = new JButton("Delete");
        JButton button4 = new JButton("Return Menu");
        frame1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        
        frame1.setSize(320,170);
        frame1.setVisible(true);
        
        frame1.setBackground(Color.LIGHT_GRAY);
        frame1.setLocation(300, 260);
        frame1.setLayout(new FlowLayout());
        frame1.add(new Label("User Name:"));
        frame1.add(new TextField(20));
        frame1.add(new Label("Password:"));
        frame1.add(new TextField(20));
        
        frame1.getContentPane().add(BorderLayout.SOUTH,button1);
        frame1.getContentPane().add(BorderLayout.SOUTH,button2);
        frame1.getContentPane().add(BorderLayout.SOUTH,button3);
        frame1.getContentPane().add(BorderLayout.SOUTH,button4);

       frame1.setVisible(true);
    }
    }

